//
//  NewestDetailView.m
//  livingDesign
//
//  Created by dlios on 15-1-29.
//  Copyright (c) 2015年 怡居. All rights reserved.
//

#import "NewestDetailView.h"

@implementation NewestDetailView
- (void)dealloc
{
    [_tableView release];

    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
   
        self.tableView = [[UITableView alloc] initWithFrame:self.bounds style:UITableViewStylePlain];
        [self addSubview:self.tableView];
        [self.tableView release];
        
//        self.shareButton = [[UIButton alloc] initWithFrame:CGRectMake(self.frame.size.width - 100, self.frame.size.height - 150, 50, 50)];
//        [self addSubview:self.shareButton];
//        self.shareButton.backgroundColor = [UIColor redColor];
//        [self.shareButton release];
//        
//        self.collectButton = [[UIButton alloc] initWithFrame:CGRectMake(self.frame.size.width - 100, self.frame.size.height - 100, 50, 50)];
//        [self addSubview:self.collectButton];
//        self.collectButton.backgroundColor = [UIColor yellowColor];
//        [self.collectButton release];
        
        
        

        
    }
    return self;
}

//- (void)setShareTarget:(id)target action:(SEL)action
//{
//    [self.shareButton addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
//}
//- (void)setCollectTarget:(id)target action:(SEL)action
//{
//    [self.collectButton addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
//}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
